package com.dashang.feecenter.util;

import com.dashang.feecenter.service.FeeAllotService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * 每日清算
 *
 * @author yulongyu
 * @since 2019/7/12
 */
@Slf4j
@Component
public class ScheduledTask {

    @Autowired
    FeeAllotService feeAllotService;

    //    @Scheduled(cron = "0 0 0 * * ?")    //每天凌晨0点执行
    @Scheduled(fixedDelay = 10000)
    public void payShopautoRebateAndlogSettle() {
        //feeGatherService.payShopautoGatherAndlogSettle();
        //feeAllotService.payShopautoAllotAndlogSettle();

    }
}
